Frontend Forever App
We have a mobile app for you to download and use. And you can unlock many features in the app.
Get it now
Intall Later
Run
HTML
CSS
Javascript
Output
Document
TOUCHSTONE
PICTURES
@charset "UTF-8"; @import url(https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800); *, :after, :before { box-sizing: border-box; padding: 0; margin: 0; } body { background: #000; } svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; /* border: 2px solid red; */ } teeext { font-family: "Noto Serif Tamil", serif; font-optical-sizing: auto; font-weight: 500; font-style: normal; font-variation-settings: "wdth" 100; }
console.log("Event Fired") function attachClickListener() { document.getElementById('touchstone').addEventListener('click', () => { const svg = document.getElementById('touchstone'); const newSvg = svg.cloneNode(true); svg.parentNode.replaceChild(newSvg, svg); attachClickListener(); // Re-attach the event listener to the new SVG }); } attachClickListener(); // Initial attachment of the event listener